<template>
  <el-container>
    <el-header>Vue+ElementUI整合开发</el-header>
    <el-container>
      <el-aside width="200px">
        <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            router
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-user-solid"></i>
              <span>学生管理系统</span>
            </template>
              <el-menu-item :index="'/student/list'">
                <i class="el-icon-s-operation"></i>
                <span>学生列表</span>
              </el-menu-item>
          </el-submenu>

        </el-menu>
      </el-aside>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<style>
*{
  padding:0;
  margin:0;
}
.el-header, .el-footer {
  background-color: #545c64;
  color: white;
  text-align: center;
  line-height: 60px;
}
.el-menu-item{
  margin-left:10px;
}
.el-menu{
  border-right-width: 0px;
}
.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 40px;
  height:800px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 30px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
<script setup lang="ts">
</script>
